home *** CD-ROM | disk | FTP | other *** search
-
-
-
- eeeexxxxppppoooorrrrttttssss((((4444)))) eeeexxxxppppoooorrrrttttssss((((4444))))
-
-
-
- NNNNAAAAMMMMEEEE
- exports - list of NFS filesystems being exported
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////eeeettttcccc////eeeexxxxppppoooorrrrttttssss
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The file /_e_t_c/_e_x_p_o_r_t_s describes the filesystems that are being exported
- to NFS clients. It is created by the system administrator using a text
- editor It is processed by _e_x_p_o_r_t_f_s(1M) at system startup and by the mount
- request daemon, _m_o_u_n_t_d(1M), each time a mount request is received.
- _e_x_p_o_r_t_f_s should be re-executed after making changes to the file.
-
- The file consists of a list of filesystems, the _n_e_t_g_r_o_u_p(4) or machine
- names allowed to remote mount each filesystem and possibly a list of
- options. The filesystem names are left justified and followed by a list
- of names separated by white space. The names are looked up in
- /_e_t_c/_n_e_t_g_r_o_u_p and then in /_e_t_c/_h_o_s_t_s. A hyphen indicates the start of
- the options list. Multiple options are separated by commas. The default
- options are rrrrwwww,,,,aaaannnnoooonnnn====nnnnoooobbbbooooddddyyyy.
-
- rrrroooo Export the directory read-only. If not specified, the
- directory is exported read-write.
-
- rrrrwwww====_h_o_s_t_n_a_m_e[::::_h_o_s_t_n_a_m_e]...
- Export the directory read-mostly. Read-mostly means exported
- read-only to most machines, but read-write to those specified.
- If no hosts are specified, the directory is exported read-write
- to all.
-
- aaaannnnoooonnnn====_u_i_d If a request comes from a host for uid 0 (typically ``root'')
- or from a host using null authentication, use _u_i_d as the
- effective user ID. _u_i_d can be either a name or an integer user
- ID from /_e_t_c/_p_a_s_s_w_d. The default value for this option is
- ``nobody'' (uid -2). Because uid 0 permits access to files
- regardless of permission and ownership, NFS servers change uid
- 0 to the anonymous uid by default. Use the rrrrooooooootttt option to
- permit accesses from hosts using uid 0. Setting the value of
- _u_i_d to -1 disables accesses from unknown users or from root on
- hosts not included in the rrrrooooooootttt option.
-
- rrrrooooooootttt====_h_o_s_t_n_a_m_e[::::_h_o_s_t_n_a_m_e]...
- Give root access only to the root (uid 0) users from a
- specified _h_o_s_t_n_a_m_e. The default is for no hosts to be granted
- root access.
-
- aaaacccccccceeeessssssss====_c_l_i_e_n_t[::::_c_l_i_e_n_t]...
- Give mount access to each _c_l_i_e_n_t listed. A _c_l_i_e_n_t can either
- be a hostname, or a netgroup (see _n_e_t_g_r_o_u_p(4)). Each _c_l_i_e_n_t in
- the list is first checked for in the /_e_t_c/_n_e_t_g_r_o_u_p database and
- then in the /_e_t_c/_h_o_s_t_s database. The default value allows any
- machine to mount the given directory.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- eeeexxxxppppoooorrrrttttssss((((4444)))) eeeexxxxppppoooorrrrttttssss((((4444))))
-
-
-
- nnnnoooohhhhiiiiddddeeee Allows a client who mounts this entry's parent filesystem to
- access files in this filesystem. This is ``off'' by default,
- preventing a client who mounts this entry's parent filesystem
- from accessing files in this filesystem. Clients who mount a
- filesystem containing a hidden filesystem access the directory
- on which the hidden child is mounted, not the child
- filesystem's root directory. Be aware that using this option
- introduces a violation of RFC 1094, RFC 1813, and the XNFS
- specification. Using this option may cause the server not to
- interoperate properly with non-IRIX clients, particularly Linux
- clients.
-
- wwwwssssyyyynnnncccc Causes all writes to this filesystem to be performed
- synchronously. With this option, the server waits until
- written data is safely stored on a magnetic disk or other non-
- volatile medium before sending a positive response to the
- client. Without this option, the server performs delayed
- writes (it responds positively to the client, then writes the
- data at its convenience or when a _s_y_n_c(2) is executed).
- Delaying writes provides a great performance boost, but also
- introduces the risk of losing data if the server crashes after
- the response but before the data is stored. Use the wwwwssssyyyynnnncccc
- option if this risk is unacceptable.
-
- 33332222bbbbiiiittttcccclllliiiieeeennnnttttssss
- Causes the server to mask off the high order 32 bits of
- directory cookies in NFS version 3 directory operations. This
- option may be required when clients run 32-bit operating
- systems that assume the entire cookie is contained in 32 bits
- and reject responses containing version 3 cookies with high
- bits on. IRIX 5.3 and Solaris 2.5 are examples of 32-bit
- operating systems with this behavior, which produces error
- messages like "Cannot decode response" on directory operations.
- XFS filesystems on the server can generate cookies with high
- bits on. Exporting filesystems with the 33332222bbbbiiiittttcccclllliiiieeeennnnttttssss option
- causes these bits to be masked and prevents error messages.
-
- ffffssssiiiidddd====_i_d This allows the administrator to set the fsid value that will
- be returned in the fsid field of the attributes returned to the
- client. This number is arbitrary but must uniquely identify
- the exported file system. The purpose of this option is
- twofold. First it provides a mechanism by which FailSafe can
- assign unique identifiers to exported file systems which may be
- failed over. This identifier can be the same on all nodes of
- the cluster. Secondly, it provides a way for administrators to
- work around NFS clients written to interpret and in some cases
- place restrictions on the fsid value returned in the
- attributes. If this option is used for this second purpose, it
- should not be used in conjunction with the nohide option, and
- the option should be used for all exported file systems. It is
- important to note that this option only affects the fsid
- contained in the file attributes. File handles are constructed
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- eeeexxxxppppoooorrrrttttssss((((4444)))) eeeexxxxppppoooorrrrttttssss((((4444))))
-
-
-
- differently and do not use the fsid value in the file
- attributes.
-
- A filesystem name that is not followed by a name list is exported to
- everyone. A ``#'' anywhere in the file indicates a comment extending to
- the end of the line on which it appears. A backslash ``\'' at the end of
- a line permits splitting long lines into shorter ones. When splitting
- the options across multiple lines, the character immediately preceeding
- the backslash must be one of ``-'', ``='', ``:'', or ``,''. Also, no
- whitespace may follow the backslash nor proceed the first character of
- the next line.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- /usr/local # export to the world
- /usr clients # export to my clients
- /usr2 bonnie clyde # export to only these machines
- /usr3 -anon=guest # map client root & anonymous to guest
- / -ro # export the root filesystem
- /usr -ro,nohide # export all local filesystems read-only
- /d/local/src \
- -rw,anon=guest,root=bonnie # multi-line example
-
- Exporting all your machine's local filesystems requires enumerating all
- local mount points and using nnnnoooohhhhiiiiddddeeee for filesystem other than root:
-
- / -ro
- /usr -ro,nohide
- /d -ro,nohide
-
-
- NNNNOOOOTTTTEEEE
- The nnnnoooohhhhiiiiddddeeee and wwwwssssyyyynnnncccc options are specific to IRIX.
-
- FFFFIIIILLLLEEEESSSS
- /etc/exports
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- exportfs(1M), mountd(1M), showmount(1M), netgroup(4), passwd(4).
-
- WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- You cannot export a directory that is either a parent- or a sub-directory
- of one that is currently exported and within the same filesystem. It
- would be illegal, for example, to export both /_u_s_r and /_u_s_r/_l_o_c_a_l if both
- directories resided in the same disk partition.
-
- While there is no hard-coded maximum length, extremely long export lists
- (hundreds of hosts or netgroups for a single exported directory) may
- cause mount requests for that exported directory to time out.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-